<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
		<title>Yming博客系统</title>
		<link rel="stylesheet" type="text/css" href="{:__TMPLPUB__}/Css/style.css"/>
		{script}
		var __DYHB_JS_ENTER__='{:__APP__}';
		{/script}
		<import file="Js.Vendor.Jquery" />    
		<import file="Js.Dyhb#package" />  
		{script}    
		{:App::U()}      
		{/script}  
		<script type="text/javascript" src="{:__TMPLPUB__}/Js/city.js"></script>
		<script type="text/javascript" src="{:__TMPLPUB__}/Js/check.js"></script>
	</head>
	<body>
		<table width="757" cellspacing="0" cellpadding="0" border="0" align="center">
			<tr align="right" valign="top">
				<td height="149" background="{:__TMPLPUB__}/Images/F_head.jpg" colspan="2">
					<div id="head">
						{if $GLOBALS['___login___']===false}
							<a href="{:Dyhb::U('index/index')}">首页</a>
							<a href="{:Dyhb::U('article/add')}">我的博客</a>
							<a href="{:Dyhb::U('user/register')}">博客注册</a>
						{d*else}
							<a>{$GLOBALS['___login___']['regname']}</a>
							<a href="{:Dyhb::U('article/add')}">我的博客</a>
							<a href="{:Dyhb::U('user/logout')}">安全退出</a>
						{/if}
					</div><!--/head-->
					<div id="login">
							<a style="margin:0px 550px 0px 0px;font-size:17px;" href="{:Dyhb::U('index/index')}">Yming博客欢迎你!</a>
					</div><!--/login-->
				</td>
			</tr>
			<!--/header-->
			<!--register-->
			<tr>
				<td valign="top" height="496" background="{:__TMPLPUB__}/Images/bg.jpg">
					<div style="margin-top:20px;"  class="_table">
						<form action="{:Dyhb::U('user/submit')}" method="post" name="user_form">
							<table width="85%" cellspacing="0" cellpadding="0" border="1" align="center">
								<tr><td colspan="2" class="left h1 font_bold">用户注册</td></tr>
								<tr>
									<td width="28%"><label for="user_name">用户名</label></td>
									<td width="72%" class="left">
									<input type="text" name="user_name" id="user_name"/>
									<span id="check_username" style="color:gray;">6-20字符，不可以全为数字</span>
									</td>
								</tr>
								<tr>
									<td><label for="user_realname">真实名</label></td>
									<td class="left" ><input type="text" name="user_realname" id="user_realname"/>
									<span id="check_realname" style="color:gray;">6-25字符</span>
									</td>
								</tr>
								<tr>
									<td>密码</td><td class="left" ><input type="password" name="user_password1"/>
									<span id="check_password1" style="color:gray;">密码不能少于6个字符</span>
									</td>
								</tr>
								<tr>
									<td>确认密码</td><td class="left"><input type="password" name="user_password2"/>
									<span id="check_password2" style="color:gray;"></span>
									<font color=red>*</font>
									</td>
								</tr>
								<tr>
									<td>邮箱</td><td class="left" ><input type="text" name="user_email"/>
									
									<span id="check_email" style="color:gray;">请认真填写邮箱，用于找回密码</span>
									<font color=red>*</font>
									</td>
								</tr>
								<tr>
									<td>所处城市</td><td class="left">
										<select name="province" id="pro_list" onchange="javascript:inicity();">
											<script type="text/javascript">createProvince();</script>
										</select>
										<select name="city" id="city_list"></select>
										<span id="check_pro_city" style="color:gray;"></span>
									<font color=red>*</font>
									</td>
								</tr>
								<tr>
									<td>验证码</td><td class="left"><input class="input_vtl" type="text" name="user_string"/>
									<img id="_img_" src="{:Dyhb::U('user/seccode')}" onclick='this.src=this.src+"?"+new Date().getTime()' style="cursor:pointer;"/>
									<span class="label_vtl" style="cursor:pointer;" onclick="javascript:updateimg();">看不清?</span>
									<span id="check_string" class="label_vtl" style="color:gray;"></span>
									</td>
								</tr>
								<tr>
									<td colspan=2 class="center">
									<input type="submit" name="reg_sub" value="注册" onclick="javascript:return check();"/>
									<input type="reset" name="reg_sub" value="重置"/>
									</td>
								</tr>
							</table>
						</form>
					</div>
				</td>
			</tr>
		</table>
	</body>
</html>
